

package com.hazelcast.nio.serialization;

/**
 * An extension to {@link Portable} to support per-object version instead of a
 * global serialization version.
 *
 * @see com.hazelcast.nio.serialization.Portable
 * @see com.hazelcast.nio.serialization.PortableFactory
 * @deprecated Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization
 * will be removed as of version 7.0.
 */
@Deprecated(since = "5.4", forRemoval = true)
public interface VersionedPortable extends Portable {

    /**
     * Returns version for this Portable class
     *
     * @return class version
     */
    int getClassVersion();
}
